<script>
	export default {
		globalData: { 
			isIphone:false,
			shareTitle:""
		},
		onLaunch: function(options) {
			//判断设备是否为 iPhone
			console.log('App onLaunch')
			const self = this
			uni.getSystemInfo({
			  success: function(res) {
				// 根据 model 进行判断
				console.log('getSystemInfo res:'+JSON.stringify(res))
				if (res.model.includes('iPhone X') ||res.model.includes('iPhone XR') || 
				res.model.includes('iPhone XS Max') || res.model.includes('iPhone 11') || 
				res.model.includes('iPhone 11 Pro') || res.model.includes('iPhone 11 Pro Max')|| 
				res.model.includes('iPhone 12 Pro Max')|| res.model.includes('iPhone 12')|| 
				res.model.includes('iPhone 12 Pro')) {
					self.globalData.isIphone = true
				}
			  }
			})
		},
		onShow: function(options) {
			console.log('App onShow')
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style>
</style>
